function newtext(x) {
	if(x<1000){
		var text=document.title;       
		var temp=x+1;      
		var count =0;
	    document.title=text.substring(1,text.length)+text.substring(0,1);
	    text=document.title.substring(0,text.length);
	    var sessMap = webim.MsgStore.sessMap();
	    for (var i in sessMap) {
	        sess = sessMap[i];
	        count=count+sess.unread();
	    }
	    if(count>0){
		    setTimeout("newtext("+temp+")", 300);
		}else{
			document.title="欢迎使用艺品商城客服系统!"; 
		}
	}else{
		document.title="您有新的未读消息，请及时处理!"; 
	}
	
}